﻿
Sys.Application.add_load(masterPageInit);

var m_AnimateObjects = ['divDownload', 'divDocuments', 'divDotNetNuke'];
var m_AnimateIndex = 0;
function masterPageInit()
{
    if (dnn.motion)
    {
        doAnimation();                  
    }
}

function doAnimation()
{
    var id = m_AnimateObjects[m_AnimateIndex];
    if (id)
    {
        var ctl = $get(id);
        ctl.style.display = '';
        dnn.dom.doTween(id, ctl, 'top', dnn.easing.easeOutBounce, -100, 50, 1);//
        m_AnimateIndex++;
        if (m_AnimateIndex < m_AnimateObjects.length)
        {
            window.setTimeout(doAnimation, 300);
        }
    }
}


